package com.jay.net.clazz;

import java.net.InetSocketAddress;

public class InetSocketAddressCls {
	public static void main(String[] args) {
		InetSocketAddress sa = InetSocketAddress.createUnresolved("localhost",
				80);
		System.out.println(sa);
		System.out.println(sa.getHostName());
		System.out.println(sa.getHostString());
		System.out.println(sa.getPort());
		System.out.println(sa.isUnresolved());
		System.out.println(sa.getAddress());
	}
}
